package mobi.hami.huapin.service.impl;

import mobi.hami.huapin.dao.UserAddressLogMapper;
import mobi.hami.huapin.model.UserAddressLog;
import mobi.hami.huapin.service.UserAddressLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Create by 小峰 on 2018/8/24.
 */
@Service
public class UserAddressLogServiceImpl implements UserAddressLogService {

    @Autowired
    private UserAddressLogMapper userAddressLogMapper;

    @Override
    public int save(UserAddressLog userAddressLog) {
        return  userAddressLogMapper.insertSelective(userAddressLog);
    }

    @Override
    public Integer getPrevoiusAddressId(Integer userid, Integer addressId) {
        return  userAddressLogMapper.getPrevoiusAddressId(userid,addressId);
    }


}
